<template>
    <div style="min-height:100vh;background: #f5f5f5;position:relative;">
        <!-- <p style="text-align:center">该功能暂未开放</p> -->
        <div :style="notecaseStyle" class="myBalance">
            <span>账户余额(元)</span>
            <p>{{data.balance}}</p>
        </div>
        <div class="fanli">
            <div>
                <p>累计返利(元)</p>
                <p class="allBlance">{{data.all_rebate}}</p>
            </div>
            <div>
                <p>当月返利(元)</p>
                <p class="monthBlance">{{data.month_rebate}}</p>
            </div>
        </div>
        <div style="background:#ffffff;margin-top:15px;">
            <router-link to="/rebate?type=0" class="myfanli">
                <span><img src="@/assets/img/icondingdan@2x.png" alt=""><span>我的返利订单</span></span>
                <img src="@/assets/img/dakai.png" alt="">
            </router-link>
            <ul class="myfaliTab">
                <li>
                    <img src="@/assets/img/icon-daifanli@2x.png">
                    <p>待返利</p>
                </li>
                <li>
                    <img src="@/assets/img/icon-yifanli@2x.png">
                    <p>已返利</p>
                </li>
                <li>
                    <img src="@/assets/img/icon-yishixiao@2x.png">
                    <p>已失效</p>
                </li>
            </ul>

        </div>
        <ul class="tixianList">
            <li>
                <router-link to="/recharge">
                    <img src="@/assets/img/chongzhi.png" alt="">
                    <span>充值</span>
                    <img src="@/assets/img/dakai.png" alt="">
                </router-link>
            </li>
            <li>
                <router-link to="/withdraw">
                    <img src="@/assets/img/icon-tixian@2x.png" alt="">
                    <span>提现</span>
                    <img src="@/assets/img/dakai.png" alt="">
                </router-link>
            </li>
            <li>
                <router-link to="/cashDetail">
                    <img src="@/assets/img/icon-tixian1@2x.png" alt="">
                    <span>提现明细</span>
                    <img src="@/assets/img/dakai.png" alt="">
                </router-link>
            </li>
            <li>
                <router-link to="/accountDetail">
                    <img src="@/assets/img/icon-zhanghumingxi@2x.png" alt="">
                    <span>账户明细</span>
                    <img src="@/assets/img/dakai.png" alt="">
                </router-link>
            </li>
        </ul>

    </div>
</template>

<script>

    import request from "@/request/index.js"
    export default {
        name: "notecase",
        components: {

        },
        data() {
            return {
                data:{},
                notecaseStyle:{
                    backgroundImage: "url(" + require("../assets/img/bg.png") + ")",
                    backgroundRepeat: "no-repeat",
                    backgroundSize: "100% 100%",
                    width:'100vw',
                    height:'125px',
                    margin:'0 auto',
                }
            }
        },
        watch:{

        },
        methods:{

        },
        mounted() {
            request.userIndex(this)
        },
    }
</script>

<style scoped lang="scss">
.myfaliTab{
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #f5f5f5;
    li{
        width: 33.3%;
        text-align: center;
        img{
            width: 20px;
        }
    }
}
.myfanli{
    vertical-align: middle;
    padding: 12px 4vw;
    display: block;
    >img{
        width: 5px;
        float: right;
        vertical-align: middle;
        margin-top: 7px;
    }
    span{
        span{
            font-size: 15px;
            color: #333333;
        }
        img{
            width: 20px;
            vertical-align: middle;
            margin-right: 5px;
        }
    }
}
    .myBalance{
        text-align: center;
        color: #ffffff;
        font-size: 13px;
        padding-top: 45px;
        p{

            font-size: 20px;
        }
    }
    .fanli{
        display: flex;
        justify-content: space-between;
        padding: 14px 0;
        background: #ffffff;
        >div{
            width:50%;
            text-align: center;
            font-size: 13px;
            color: #666666;
            font-size: 13px;

        }
        .allBlance,.monthBlance{
            color:#333333;
            font-size: 15px;
        }
    }
    .tixianList{
        background: #ffffff;
        margin-top: 15px;
        li{
            padding: 0 4vw;
            line-height: 50px;
            border-top: 1px solid #f5f5f5;
            a{
                display: block;
            }
            img{
                width: 5px;
                vertical-align: middle;
            }
            span{
                color: #333333;
            }
            img:first-child{
                width: 20px;
                margin-right: 5px;
            }
            img:last-child{
                float:right;
                margin-top: 20px;
            }
        }
    }
</style>
